import styled from 'styled-components'
import woff from 'assets/icons/iconfont.woff'
import ttf from 'assets/icons/iconfont.ttf'


// 传一个组件，然后把它暴露出去
export default((Comp)=>{
  return styled(Comp)`
        @font-face{
          font-family:'iconfont';
          src:url(${woff}) format('woff'),url(${ttf}) format('truetype')
        }
  `
})

// const styled = styled.div`
//    @font-face{
//         font-family:'iconfont';
//         src:url(${woff}) format('woff'),url(${ttf}) format('truetype')
//       }
// `
 